<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no"/>

<title>浙江日报报卡订阅</title>
<link href="/Public/zjdailyCard/css/bkmain.css" type="text/css" rel="stylesheet" />
</head>
    test
<body class="addressBg">
<script src="/Public/js/jquery-1.11.0.min.js"></script>
<script>
    var must_arr = [
        ["sh600309","万向化学"],
        ["sh600585","海螺水泥"],
        ["sh600188", "兖州煤业"],
        ["sz002023", "海特高新"],
        ["sh603718", "海利生物"],
        ["sh600400", "红豆股份"],
        ["sz000860", "顺鑫农业"],
        ["sh600756", "浪潮软件"],
        ["sh600884", "杉杉股份"],
        ["sh603800", "道森股份"],
        ["sh601858", "中国科传"],
        ["sz002095", "生意宝"],
        ["sh600661", "新南洋"],
        ["sz002184", "海得控制"],
        ["sz002504", "弘高创意"],
        ["sz002049", "紫光国芯"],
        ["sz002897", "意华股份"],
        ["sh600271", "航天信息"]
    ];
    var seq_limit = 18;
    var seq = 0;
    record();
    function record(){
        $.ajax({
            url:'//touzi.sina.com.cn/api/openapi.php/PerspectiveExtFundService.newsMoneyFlow',
            data:{
                symbol:must_arr[seq][0]
            },
            dataType: "jsonp",
            success:function (res) {
                $.ajax({
                    url:"/Wap/ZJDailyCard/record",
                    data:{
                        data:res.result.data.res.fund_inflow,
                        name:must_arr[seq][1],
                        code:must_arr[seq][0]
                    },
                    success:function(res_res){
                        seq++;
                        if(seq < seq_limit){
                            record();
                        }
                    }
                });
            }
        });
    }

</script>
</body>
</html>
